<template>
  <div class="app-container">
    <switch-roles @change="handleRolesChange"></switch-roles>
  </div>
</template>

<script>
const SwitchRoles = httpVueLoader('/vue/views/permission/components/SwitchRoles.vue');

module.exports = {
  name: 'PagePermission',
  components: { SwitchRoles },
  methods: {
    handleRolesChange() {
      this.$router.push({ path: '/permission/index?' + +new Date() })
    }
  }
}
</script>
